1
00:00:00,120 --> 00:00:00,560
All right.

2
00:00:00,570 --> 00:00:02,100
Picking up where we left off.

3
00:00:02,100 --> 00:00:08,790
We're going to utilize a tool called hash cat hash cat is built into your Kelly Linux machine.

4
00:00:08,790 --> 00:00:12,480
Though we're going to talk pros and cons of that here in just a second.

5
00:00:12,480 --> 00:00:16,290
Hash cat is a tool utilized to crack hashes.

6
00:00:16,500 --> 00:00:22,260
And we're going to run it first on our Linux machine in our VM and then we're going to try running it

7
00:00:22,650 --> 00:00:25,810
elsewhere and just take a look at speed differences.

8
00:00:25,920 --> 00:00:29,420
So what I want you to do is actually cap capture this whole hash.

9
00:00:29,430 --> 00:00:37,100
We're gonna copy it and we'll just do something like get it and tell em hash dot text.

10
00:00:37,230 --> 00:00:37,960
It's fine.

11
00:00:38,920 --> 00:00:43,290
And we'll paste that bad boy into here and just hit save.

12
00:00:43,360 --> 00:00:52,090
Now we're going to need to set up our hash cap so our hash cat is going to look something like this.

13
00:00:52,090 --> 00:00:57,970
So it's going to say hash cat and then we're going to have to do a module of fifty six hundred and just

14
00:00:57,970 --> 00:00:58,930
type this in with me.

15
00:00:58,930 --> 00:01:01,840
I'm going to go ahead and show you what it means in just a second.

16
00:01:01,840 --> 00:01:08,320
Then we need our file that we're going to attempt to crack which is going to be A.L. M hash out texts

17
00:01:08,380 --> 00:01:12,230
and we're gonna need a word list so we don't have the word list yet.

18
00:01:12,250 --> 00:01:14,530
I'm going to show you where you can find that.

19
00:01:14,530 --> 00:01:15,520
So first things first.

20
00:01:15,520 --> 00:01:16,390
What the heck is this.

21
00:01:16,400 --> 00:01:17,970
And fifty six hundred.

22
00:01:18,130 --> 00:01:26,540
So if we go to a new tab and we just say hash cat dash dash help.

23
00:01:26,630 --> 00:01:31,570
Well it tells us a bunch different ways that we can attack hashes here.

24
00:01:31,580 --> 00:01:36,500
There's all different kinds of settings when it comes to hash cat.

25
00:01:36,680 --> 00:01:39,160
But what we're after is a module right.

26
00:01:39,170 --> 00:01:41,680
And look at all these different hashes we can crack.

27
00:01:41,690 --> 00:01:47,960
Now some of these might sound familiar like empty five SHA 1 etc. But you know this is a long list of

28
00:01:47,960 --> 00:01:52,310
modules and here are all the different numbers that we have to go through and we have to look through

29
00:01:52,310 --> 00:01:53,990
these to find what we're after.

30
00:01:53,990 --> 00:01:58,260
So here's the net and tell em be two which is fifty six hundred.

31
00:01:58,490 --> 00:02:05,390
Now we could do a little bit of Linux Fu here and just you know narrow this down so we can say carve

32
00:02:05,390 --> 00:02:07,240
up hash cat dash help.

33
00:02:07,490 --> 00:02:13,840
And then what if we just say graph and we know the hashes and tell em like that guess what.

34
00:02:13,850 --> 00:02:18,740
We just pull down for Intel Ms and we can just pull the fifty six hundred right out of here in case

35
00:02:18,740 --> 00:02:19,490
you ever forget.

36
00:02:19,850 --> 00:02:23,110
I have it memorized so they do it so often you probably will as well.

37
00:02:23,180 --> 00:02:27,620
Also you can put this into your notebook and this will be a good place to have it and to say hey how

38
00:02:27,620 --> 00:02:29,450
do I crack until and b to hashes.

39
00:02:29,450 --> 00:02:29,960
Here you go.

40
00:02:29,960 --> 00:02:32,000
Or have a hash cap cheat sheet.

41
00:02:32,000 --> 00:02:33,120
There you go as well.

42
00:02:33,170 --> 00:02:34,270
Make your notes your own.

43
00:02:34,430 --> 00:02:38,240
But of course as I've said this whole course please have notes.

44
00:02:38,240 --> 00:02:43,370
So we've got our module we've got our hash.

45
00:02:43,400 --> 00:02:45,530
Now we need to crack that hash.

46
00:02:45,530 --> 00:02:47,340
So we need to worry less to do it.

47
00:02:47,360 --> 00:02:52,520
Let's go up to files and may show you a little little area in our in our computer here so go ahead and

48
00:02:52,520 --> 00:02:59,900
go to other locations and we're going to do a computer and then we're going to go ahead and we're going

49
00:02:59,900 --> 00:03:11,140
to go to user and then share right here and start typing in word wordless and that will bring you right

50
00:03:11,140 --> 00:03:11,980
to wordless here

51
00:03:16,560 --> 00:03:21,240
now there is this rock you that DST that Jesus.

52
00:03:21,240 --> 00:03:28,370
Go ahead and open that and once you open that just go ahead and say extract and we can put this into

53
00:03:28,370 --> 00:03:28,890
where it was.

54
00:03:28,910 --> 00:03:29,540
That's fine.

55
00:03:29,540 --> 00:03:33,800
Or we could put this let's put this with us in our home folder.

56
00:03:33,810 --> 00:03:35,710
That'll work because we might use it again.

57
00:03:35,720 --> 00:03:40,960
So let's go ahead and just extract this and it might take a second here.

58
00:03:41,050 --> 00:03:46,660
Now we're not going to open this up but rock you is one hundred and forty megabytes and I can't tell

59
00:03:46,660 --> 00:03:49,600
you how many passwords are in here.

60
00:03:49,600 --> 00:03:50,650
Millions.

61
00:03:50,650 --> 00:03:54,260
There's millions and millions of passwords in the you got text file.

62
00:03:54,400 --> 00:03:58,080
This is just the default word list that comes with this.

63
00:03:58,090 --> 00:04:01,880
There are lots of wordless out there that you can choose from.

64
00:04:01,930 --> 00:04:10,850
For example we could go out to we got to Firefox just go to Google and there are several different sites.

65
00:04:10,870 --> 00:04:18,250
We can say Google dot com and we could say hash cat word lists.

66
00:04:18,490 --> 00:04:20,940
We can look for them and there's different ones.

67
00:04:21,030 --> 00:04:26,340
Pass varied work passphrase wordless here there's another one called SEC lists.

68
00:04:26,350 --> 00:04:34,080
So we say password sex lists like that and there's this great github here for SEC lists and income through

69
00:04:34,090 --> 00:04:38,030
here and they have all different kinds.

70
00:04:38,290 --> 00:04:45,550
So we can go through them usernames discovery passwords right here and they've got the top 100 top ten

71
00:04:45,550 --> 00:04:50,740
thousand all the way through 10 million passwords right.

72
00:04:50,770 --> 00:04:59,830
So the word this that I use is like 70 trillion or something insane and it takes about 15 minutes to

73
00:04:59,830 --> 00:05:00,340
go through.

74
00:05:00,370 --> 00:05:05,860
That's how fast a processor can work but you just kind of have to find your own look through them out

75
00:05:05,860 --> 00:05:10,920
there and it's probable that your company will have their own word list as well.

76
00:05:10,990 --> 00:05:14,800
But when you're doing stuff like hack the box so you're just doing capture the flags.

77
00:05:14,800 --> 00:05:18,310
Usually something like rock you is plenty sufficient.

78
00:05:18,340 --> 00:05:20,490
You don't need to go above and beyond that.

79
00:05:20,650 --> 00:05:24,670
Once you start getting into cracking user passwords then you should start looking for a better word

80
00:05:24,670 --> 00:05:25,480
list.

81
00:05:25,540 --> 00:05:29,680
But for now we're gonna go ahead and just say rock you that tech since we've put it into our home folder

82
00:05:30,340 --> 00:05:34,350
and now we have to also add in this dash dash force.

83
00:05:34,360 --> 00:05:38,470
Now for me this is probably not going to work it's been a little bit since I've actually check this

84
00:05:38,890 --> 00:05:46,870
I have a pretty new processor I'm running either a late I 7 to an eye 9 and what this is doing here

85
00:05:46,870 --> 00:05:53,500
is it's going to try to run it but even still we're in a VM and the dash force is saying hey I know

86
00:05:53,500 --> 00:05:54,300
I'm in a VM.

87
00:05:54,310 --> 00:05:56,020
This is not going to run off my graphics card.

88
00:05:56,020 --> 00:05:58,210
This is actually gonna run off my CPE you.

89
00:05:58,240 --> 00:06:03,820
It's gonna be a lot slower and we're going to try to force this to run off the CPE you I'm going to

90
00:06:03,820 --> 00:06:06,960
hit enter you may work.

91
00:06:06,960 --> 00:06:08,160
Mine will not work.

92
00:06:08,210 --> 00:06:08,930
OK.

93
00:06:08,970 --> 00:06:10,020
This is what mine looks like.

94
00:06:10,050 --> 00:06:13,290
So because I'm in a VM it's still not going to work for me.

95
00:06:13,290 --> 00:06:16,290
You might get a little bit better luck and it might work for you.

96
00:06:16,830 --> 00:06:18,880
So here is the alternative.

97
00:06:19,350 --> 00:06:24,960
You should always run your password cracking regardless of what tool it is.

98
00:06:24,960 --> 00:06:31,380
But let's say hash guys always run it on whatever system you're running your base operating system.

99
00:06:31,380 --> 00:06:33,660
For example I'm running on Windows.

100
00:06:33,660 --> 00:06:35,580
So guess what we can do.

101
00:06:35,760 --> 00:06:36,790
We've got to Google.

102
00:06:36,810 --> 00:06:46,400
We could say hash cat download and we'll be brought right to hash cat died here come to here and right

103
00:06:46,400 --> 00:06:48,380
here is the hash cap binaries.

104
00:06:48,380 --> 00:06:55,430
So we just download the binaries right here and I'll just go ahead and open this as is a seven zip file.

105
00:06:56,210 --> 00:06:58,170
And this is hash cat five point one.

106
00:06:58,190 --> 00:06:59,390
I'll bring this over.

107
00:06:59,450 --> 00:07:08,040
You can see we just extract this and then we have our 64 EMC right here and we can run the same kind

108
00:07:08,040 --> 00:07:09,080
of deal.

109
00:07:09,150 --> 00:07:13,760
So go ahead and extract this and I'm going to show you how to run this.

110
00:07:13,890 --> 00:07:18,350
What you're going to want to do is you're going to want to have your word lists.

111
00:07:18,360 --> 00:07:24,510
So if you need to go ahead and go into your files you should be able to copy and move over so copy your

112
00:07:24,510 --> 00:07:28,690
rocky text onto your desktop or wherever you're going to be putting this.

113
00:07:28,800 --> 00:07:34,600
I put this right into a folder on my desktop and I'll show you my actual cracking one.

114
00:07:34,650 --> 00:07:42,540
So mine looks like this where I've got it for point two point one I'm a little outdated but I just have

115
00:07:42,540 --> 00:07:47,100
my hash cat in here and then I put my different hashes in here that I try to crack.

116
00:07:47,100 --> 00:07:52,050
And I have Rocky's sitting right here as well so you can put it right in the same folder or make it

117
00:07:52,050 --> 00:07:53,220
easier.

118
00:07:53,220 --> 00:07:59,250
And then we'll go ahead and just attempt to crack these passwords right.

119
00:07:59,280 --> 00:08:03,510
So I'm going to make a new text file here.

120
00:08:03,570 --> 00:08:10,380
Amazon call it hashes hashes dot text or hashes forward text is what this will be something to go ahead

121
00:08:10,380 --> 00:08:12,590
and just copy this hashes over here.

122
00:08:12,720 --> 00:08:15,960
Put it in a file and I'll show you what it's going to look like.

123
00:08:15,960 --> 00:08:19,580
So should be exactly the same.

124
00:08:19,620 --> 00:08:27,080
So I have a text file hashes for the text and go ahead and see um I have to minimize this for us.

125
00:08:27,090 --> 00:08:27,360
OK.

126
00:08:27,410 --> 00:08:29,180
Hashes that text looks just like this.

127
00:08:29,190 --> 00:08:34,860
I'll go ahead and save this or hashes for the attacks and then I'm going to need to bring up a command

128
00:08:34,860 --> 00:08:42,680
prompt for you run as administrator and I'll bring this over and I'm just gonna go right into the folder

129
00:08:42,680 --> 00:08:52,740
I have it stored so see users he desktop hash that and from here the syntax is really the same thing

130
00:08:52,770 --> 00:08:57,690
I'm going to change it just a little bit of the file format for the executable.

131
00:08:57,690 --> 00:09:04,680
So it's just hash cat 64 that you see the M A fifty six hundred is still the same.

132
00:09:04,680 --> 00:09:11,540
And then we're going to say hashes for that text and then Rocky the text and then is going to do a dash

133
00:09:11,560 --> 00:09:13,530
o the stands for optimize.

134
00:09:13,530 --> 00:09:20,760
So I just want to optimize the output here and it's going to make this go a little bit faster but just

135
00:09:20,760 --> 00:09:24,710
best practice to use dash o here okay.

136
00:09:24,720 --> 00:09:30,170
And let's go ahead and just hit enter on this and this will take just a second to spin up and then you're

137
00:09:30,170 --> 00:09:31,790
gonna notice as soon as it spins up.

138
00:09:31,800 --> 00:09:34,270
See I came to finish my sentence that's how fast it is.

139
00:09:34,340 --> 00:09:39,650
As soon as it spins up it finds the password passionate cracks it so you could see password one here

140
00:09:40,070 --> 00:09:42,590
and this is exactly what we set the password to.

141
00:09:42,980 --> 00:09:47,940
So again this is a weak password very easy to figure out.

142
00:09:48,020 --> 00:09:53,030
And when you run into organizations like this you're gonna see this all over the place.

143
00:09:53,180 --> 00:10:00,200
And I still estimate like 70 percent of the clients that I'm I'm going up against are are using Elohim

144
00:10:00,200 --> 00:10:04,370
and R and B T and S and they're using weak passwords.

145
00:10:04,430 --> 00:10:11,300
So these are just really easy wins when it comes to you know movement in the network and getting that

146
00:10:11,300 --> 00:10:12,830
initial foothold.

147
00:10:12,830 --> 00:10:18,560
This is why Elam and our poisoning is such a big one such a common popular one to be used.

148
00:10:18,560 --> 00:10:25,950
So again this comes down to password policy and having a good password policy.

149
00:10:26,050 --> 00:10:31,310
We're going to crack these these small passwords we're gonna crack passwords that have common characters

150
00:10:31,490 --> 00:10:37,490
and we'll talk about this in defenses but we really just want to let the client know you know like this

151
00:10:37,490 --> 00:10:39,070
is a good indicator to let them know.

152
00:10:39,140 --> 00:10:43,970
We we capture these hashes and we crack them or capture these hashes and we did it and that's a good

153
00:10:43,970 --> 00:10:47,300
indicator of their policy and other things to check too.

154
00:10:47,300 --> 00:10:54,080
If you're Rocky or whatever word list that you're using doesn't work then you could still go and use

155
00:10:54,590 --> 00:11:01,520
other things like their name for example the company name with a one or one exclamation or one two three.

156
00:11:01,520 --> 00:11:07,640
You just got to get creative with it and think outside the box and things again like fall 20 19 or whatever

157
00:11:07,640 --> 00:11:11,270
year it is winter or whatever whatever season it is as well.

158
00:11:11,270 --> 00:11:14,690
Putting those in there and just trying to use the easy way out.

159
00:11:14,810 --> 00:11:20,010
You got to think like a user who's wanting to use the easy way out and you're going to be very successful

160
00:11:20,010 --> 00:11:20,570
with this.

161
00:11:20,930 --> 00:11:27,020
So that is it for this lesson from here we're going to go on and talk about the mitigation strategies

162
00:11:27,050 --> 00:11:28,940
and then we'll move on into some more attacks.

163
00:11:28,940 --> 00:11:30,610
So I'll catch you over in the next video.
